const EN_LOCALE_ONLY = process.env.EN_LOCALE_ONLY === 'true'
const IN_BROWSER = typeof window !== 'undefined'
const IS_DEBUG = process.env.DEBUG === 'true'
const IS_PROD = process.env.NODE_ENV === 'production'
const TIPINFO_DISPLAY_DURATION = 5000
const STATUS_QUERY_INTERVAL = 3000
const STATUS_CHART_REFLASH_INTERVAL = 8000
const STATUS_HEALTHY_INVALID = -1

var UI_START_TIME_SECOND = Date.now()
var CHART_THP_DATA = null
var CHART_CPU_DATA = null
var CHART_HDSK_DATA = null
var CHART_MEM_DATA = null
var RUNNING_STATUS = null
var RUNNING_TEXT = null
var CONFIG_UI_OVERLAY = false
var VueObject = null

module.exports = {
  VueObject,
  EN_LOCALE_ONLY,
  IN_BROWSER,
  IS_DEBUG,
  IS_PROD,
  TIPINFO_DISPLAY_DURATION,
  STATUS_QUERY_INTERVAL,
  STATUS_CHART_REFLASH_INTERVAL,
  UI_START_TIME_SECOND,
  CHART_THP_DATA,
  CHART_CPU_DATA,
  CHART_HDSK_DATA,
  CHART_MEM_DATA,
  RUNNING_STATUS,
  RUNNING_TEXT,
  CONFIG_UI_OVERLAY,
  STATUS_HEALTHY_INVALID,
}
